<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use App\Model\Base;
use App\User;
use App\Model\Article;

class ArticleComment extends Base
{
    protected $guarded=[];
    public  function users(){
        return $this->hasOne(User::Class,'id','user_id');
    }
    public  function articles(){
        return $this->hasOne(Article::Class,'id','article_id');
    }
}
